package cn.iocoder.yudao.module.product.api.product.dto;

import cn.iocoder.yudao.module.product.enums.product.UpsalaStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Schema(description = "RPC 服务 - 商品 Response DTO")
@Data
public class ProductRespDTO {

    @Schema(description = "商品编号", example = "1024")
    private Long id;

    @Schema(description = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道")
    private String name;

    @Schema(description = "商品描述", example = "芋道")
    private String description;

    @Schema(description = "商品价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private BigDecimal price;

    @Schema(description = "上架状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer upsalaStatus; //参见 UpsalaStatusEnum 枚举

}
